package com.hyfrogx.modules.information.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.information.entity.InfoCommentEntity;

import java.util.List;
import java.util.Map;

/**
 * @author liubin
 * @date 2019/11/1 10:41
 */
public interface InfoCommentService extends IService<InfoCommentEntity> {

  /**
   * 客户端取这条资讯的所有评论
   * @param infoId
   * @return
   */
  List<InfoCommentEntity> getInformationCommentforApi(Integer infoId);

  /**
   * 客户端取这条评论的所有回复
   * @param id
   * @return
   */
  List<InfoCommentEntity> getCommentReplyforApi(Integer id);

  Page getAllReplyComments(QueryExt query);

  Page getReplyCommentsByUid(QueryExt query);

  /**
   * 获取当前资讯全部评论
   * @param
   * @return
   */
  Page  getInformationComment(QueryExt queryExt);

  Page getOldInformationComments(QueryExt queryExt);

  Page getAllInformationComments(QueryExt queryExt);

  /**
   * 回复评论
   * @param infoComment
   * @param replyuid
   * @return
   */
  int replyCommet(InfoCommentEntity infoComment, Integer replyuid);

  /**
   * 评论
   * @param infoComment
   * @return
   */
  Integer commectInformation(InfoCommentEntity infoComment);
}
